<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<?php if (equipment() == 1) : ?>

<?php else : ?>
    <style>
        .book-thumb {
            height: 265px;
        }
    </style>
<?php endif; ?>
<div class="banner">
    <div class="banner-wrapper">
        <a style="background-image:url('https://blog.satri.cn/usr/uploads/bookroom-bg.jpg')">
            <h2>书 评 | 影 评
                <br>
                <p style="font-size:15px;letter-spacing:1px;">站在巨人的肩上看世界</p>
            </h2>
        </a>
    </div>
</div>
<?php if ($this->have()) : ?>
    <div id="books">
        <?php while ($this->next()) : ?>
            <a href="<?php $this->permalink() ?>" class="book-item">
                <div class="book-thumb" style="background-image:url('<?php $this->attachments(1)->attachment->url(); ?>')"></div>
                <div class="book-name"><?php $this->title() ?></div>
            </a>
        <?php endwhile; ?>
    </div>


<?php else : ?>
    <article class="post">
        <h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
    </article>
<?php endif; ?>
<?php $this->pageNav('&laquo; 前一页', '后一页 &raquo;'); ?>
</div><!-- end #main -->
<?php $this->need('footer.php'); ?>